<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@include file="../../common/tagInclude.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="${basePath}"/>
<link rel="Shortcut Icon" href="${basePath}res/ico/favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="${basePath}res/front/css/style_${lg}.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="${basePath}res/front/js/jquery-1.4.2.js"></script>
<script type="text/javascript" src="${basePath}res/front/js/style.js"></script>
<title>诚聘英才  -- ${baseTitle}</title>
<script type="text/javascript">
	function jump(deptId){
		window.location = '${basePath}${lg}/job?cateId=${cate.cateId}&deptId=' + deptId ;
	}
</script>
</head>
<body>
<%@include file="../include/header-cn.jsp"%>
<div class="center son_bg">
	 <div class="son_main">
	  <div class="son_right">
        <div class="tit"><h2>你现在的位置：<a href="${basePath}${lg}/">首页</a> &gt; 
        <a href="${basePath}${lg}/hr">诚聘英才</a> &gt; ${cate.name}</h2></div>
        <div>按部门搜索：
		  <select  id="cateId" name="cateId"  style="height:20px;" onchange="jump(this.options[this.options.selectedIndex].value);">
			<option value="0" selected="selected">请选择部门</option>
         	<c:forEach var="dept" items="${deptList}">
				<option value="${dept.deptId}" <c:if test="${dept.deptId == deptId}">selected="selected"</c:if>>${dept.name}</option>
			</c:forEach>
		  </select>
		</div>
		<div class="conn">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="jobtable">
            <tr>
              <th>职位名称</th> 	
              <th width="12%">招聘人数</th> 	
              <th width="15%">工作地点</th> 	
              <th>招聘部门</th> 	
              <th width="10%">详 情</th> 	
              <th width="16%">应聘该职位</th>
            </tr>
         	<c:forEach var="job" items="${jobList}">
            <tr>
              <td><a href="${basePath}${lg}/job/${cate.cateId}/${job.jobId}">${job.title}</a></td>
              <td>${job.person}</td>
              <td>${job.address}</td>
              <td>${job.jobDept.name}</td>
              <td><a href="${basePath}${lg}/job/${cate.cateId}/${job.jobId}">查看>></a></td>
              <td><a href="${basePath}${lg}/job/apply/${cate.cateId}/${job.jobId}">应聘该职位>></a></td>
            </tr>
	       	</c:forEach>
          </table>
          <div class="blank10"></div>
          <c:set var="pageURL" value="${basePath}${lg}/job?cateId=${cate.cateId}&deptId=${deptId}&"/>
	     <%@include file="../include/frontPages-cn.jsp" %>
        </div>
     </div>
     <div class="son_left">
        <h2>诚聘英才</h2>
        <ul class="left_menu">
        	<c:forEach var="cate" items="${cateList}">
        		<c:choose>
        			<c:when test="${cate.isJob == 1}">
        				<li><a href="${basePath}${lg}/job?cateId=${cate.cateId}">${cate.name}</a></li>
        			</c:when>
        			<c:otherwise>
         	 			<li><a href="${basePath}${lg}/hr?cateId=${cate.cateId}">${cate.name}</a></li>
        			</c:otherwise>
        		</c:choose>
         	 </c:forEach>
        </ul>
        <%@include file="../include/left-cn.jsp" %>
     </div>
     <div class="clearfix"></div>
  </div>
</div>
<%@include file="../include/footer-cn.jsp" %>
</body>
</html>
